package lab02.test06;

public class Ladder {
    private double up;
    private double down;
    private double high;
    private double area;

    public Ladder(){}

    public Ladder(double up,double down,double area,double high){

        this.area=area;
        this.down=down;
        this.high=high;
        this.up=up;
    }

    public double getUp() {
        return up;
    }

    public void setUp(double up) {
        this.up = up;
    }

    public double getDown() {
        return down;
    }

    public void setDown(double down) {
        this.down = down;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getArea(double up,double down,double high) {

        area=(up+down)*high/2;
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }
}
